package com.wecan.base.DTO.base;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Max;

/**
 * @Author liuzhihao
 * @Date 2022.01.20
 * @Version ${version}
 * @Description ${description}
 */
@Schema(title = "分页基础信息")
@Data
public class PageDTO {
    @Schema(title = "页面索引")
    private Integer pageNum = 1;

    @Schema(title = "页面大小")
    @Max(value = 200, message = "一页最大只能请求200")
    private Integer pageSize = 10;
}
